package com.hanhai.material.device.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.RelationOneToMany;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 实体类。
 *
 * @author youchuang
 * @since 2023/10/18 11:26:03
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "sys_bad_record", dataSource = "device")
public class SysBadRecord implements Serializable {

    @Id
    private String id;

    private String workShop;

    private String shift;

    private String shiftCode;

    private String machineName;

    private String reasonType;

    private Integer reasonTypeId;

    private Integer reasonId;

    private String reasonName;

    private Integer num;
    @Column(onInsertValue = "now()")
    private Date submissionTime;

    private Date productDate;

    private String summary;

    private String workPlanId;

    private String productName;

    @Column(onInsertValue = "now()")
    private Date createTime;
    @Column(onUpdateValue = "now()")
    private Date updateTime;

    private String productRecordId;

    private String createUserId;

    private String workShopName;

    private String productId;

    @Column(ignore = true)
    private List<SysBadRecord> badRecordList;

    private String createUserName;

    private String shortName;
    private String updateUserName;
    private String updateUserId;

    @Column(ignore = true)
    private SysProductRecordShift productRecordShift;
    @Column(ignore = true)
    private int totalNum;

    private String area;

    private String badRecord1Id;

    private String type;


}
